package com.wodsy.phoenix.datadao.orderc.dao;


import com.wodsy.phoenix.datadao.base.IBaseDao;
import com.wodsy.phoenix.dataobject.base.Pager;
import com.wodsy.phoenix.dataobject.orderc.model.Order;
import com.wodsy.phoenix.dataobject.orderc.vo.BuyerOrderSearchReq;

/***
 * @author jiawenfeng
 * @since 2015-05-20
 */
public interface OrderDao extends IBaseDao<Order, Long> {

    /**
     * 通过买家的user_id查询买家的订单
     *
     * @param searchCondition 查询订单的查询条件
     * @param orderPager      分页数据
     * @return
     */
    public Pager<Order> findBySearchCondition(Pager<Order> orderPager, BuyerOrderSearchReq searchCondition);


    /***
     * 通过订单号查询订单信息
     * @param orderId 订单号
     * @return
     */
    Order findByOrderId(Long orderId);
}
